home *** CD-ROM | disk | FTP | other *** search
-
-
-
- EEEEXXXXPPPPOOOORRRRTTTTEEEENNNNTTTT((((3333)))) EEEEXXXXPPPPOOOORRRRTTTTEEEENNNNTTTT((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- exportent, getexportent, setexportent, addexportent, remexportent,
- endexportent, getexportopt - get exported file system information
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<eeeexxxxppppoooorrrrtttteeeennnntttt....hhhh>>>>
-
- FFFFIIIILLLLEEEE ****sssseeeetttteeeexxxxppppoooorrrrtttteeeennnntttt((((vvvvooooiiiidddd))));;;;
-
- ssssttttrrrruuuucccctttt eeeexxxxppppoooorrrrtttteeeennnntttt ****ggggeeeetttteeeexxxxppppoooorrrrtttteeeennnntttt((((FFFFIIIILLLLEEEE ****ffffiiiilllleeeepppp))));;;;
-
- iiiinnnntttt aaaaddddddddeeeexxxxppppoooorrrrtttteeeennnntttt((((FFFFIIIILLLLEEEE ****ffffiiiilllleeeepppp,,,, cccchhhhaaaarrrr ****ddddiiiirrrrnnnnaaaammmmeeee,,,, cccchhhhaaaarrrr ****ooooppppttttiiiioooonnnnssss))));;;;
-
- iiiinnnntttt rrrreeeemmmmeeeexxxxppppoooorrrrtttteeeennnntttt((((FFFFIIIILLLLEEEE ****ffffiiiilllleeeepppp,,,, cccchhhhaaaarrrr ****ddddiiiirrrrnnnnaaaammmmeeee))));;;;
-
- cccchhhhaaaarrrr ****ggggeeeetttteeeexxxxppppoooorrrrttttoooopppptttt((((ssssttttrrrruuuucccctttt eeeexxxxppppoooorrrrtttteeeennnntttt ****xxxxeeeennnntttt,,,, cccchhhhaaaarrrr ****oooopppptttt))));;;;
-
- vvvvooooiiiidddd eeeennnnddddeeeexxxxppppoooorrrrtttteeeennnntttt((((FFFFIIIILLLLEEEE ****ffffiiiilllleeeepppp))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- These routines access the exported filesystem information in /_e_t_c/_x_t_a_b.
-
- _s_e_t_e_x_p_o_r_t_e_n_t opens the export information file and returns a file pointer
- to use with _g_e_t_e_x_p_o_r_t_e_n_t, _a_d_d_e_x_p_o_r_t_e_n_t, _r_e_m_e_x_p_o_r_t_e_n_t, and _e_n_d_e_x_p_o_r_t_e_n_t.
- _g_e_t_e_x_p_o_r_t_e_n_t reads the next line from _f_i_l_e_p and returns a pointer to an
- object with the following structure containing the broken-out fields of a
- line in the file, /_e_t_c/_x_t_a_b. The fields have meanings described in
- _e_x_p_o_r_t_s(4).
-
- #define ACCESS_OPT ``access'' /* machines that can mount fs */
- #define ROOT_OPT ``root'' /* machines with root access of fs */
- #define RO_OPT ``ro'' /* export read-only */
- #define RW_OPT ``rw'' /* export read-mostly */
- #define ANON_OPT ``anon'' /* uid for anonymous requests */
- #define NOHIDE_OPT ``nohide'' /* visible from upper-exported fs */
- struct exportent {
- char *xent_dirname; /* directory (or file) to export */
- char *xent_options; /* options, as above */
- };
-
-
- _a_d_d_e_x_p_o_r_t_e_n_t adds the _e_x_p_o_r_t_e_n_t to the end of the open file _f_i_l_e_p. It
- returns 0 if successful and -1 on failure. _r_e_m_e_x_p_o_r_t_e_n_t removes the
- indicated entry from the list. It also returns 0 on success and -1 on
- failure. _g_e_t_e_x_p_o_r_t_o_p_t scans the _x_e_n_t__o_p_t_i_o_n_s field of the _e_x_p_o_r_t_e_n_t
- structure for a substring that matches _o_p_t. It returns the string value
- of _o_p_t, or NULL if the option is not found.
-
- _e_n_d_e_x_p_o_r_t_e_n_t closes the file.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- EEEEXXXXPPPPOOOORRRRTTTTEEEENNNNTTTT((((3333)))) EEEEXXXXPPPPOOOORRRRTTTTEEEENNNNTTTT((((3333))))
-
-
-
- NNNNOOOOTTTTEEEE
- The NNNNOOOOHHHHIIIIDDDDEEEE____OOOOPPPPTTTT option is specific to IRIX.
-
- To compile and link a program that calls these routines, follow the
- procedures for section (3Y) routines as described in _i_n_t_r_o(3).
-
- FFFFIIIILLLLEEEESSSS
- /etc/exports
- /etc/xtab
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- exportfs(1M), exports(4).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- NULL pointer (0) returned on EOF or error.
-
- BBBBUUUUGGGGSSSS
- The returned _e_x_p_o_r_t_e_n_t structure points to static information that is
- overwritten in each call.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-